import java.util.Arrays;



public class Text{

    public static void main(String[] args) throws CloneNotSupportedException{

        Person man1 = new Person("zhangsan",20);
        Person man2 = new Person("lisi",17);
        Person man3 = new Person("wangwu",8);

//        Person[] arr = new Person[3];
//        arr[0] = man1;
//        arr[1] = man2;
//        arr[2] = man3;
//
//
//        Arrays.sort(arr,man2);
//
//        System.out.println(Arrays.toString(arr));
        Person my = man1.clone();
        my.money.moneys = 10000;
        System.out.println(my.money.moneys);
        System.out.println(man1.money.moneys);

    }
}
